@extends('admin.master')
<script src="/js/admin/customers.js"></script>

@section('title', '用户信息')
@section('firstItem')
@parent
				<span>用户信息</span>
				<input class="a_indexbg" type="hidden" value="customers" />
@stop
@section('searchList')
@parent
				<a class="queryBoxBtn">搜索</a>
				<div>
					<input class="writeQueryBox" type="text" placeholder="输入用户名或用户手机号码" value="{{ $condition }}" />
				</div>
@stop
@section('dataTables')
@parent
			<table class="userInfor dataTables" cellspacing="0" cellpadding="0">
				<thead>
					<tr>
						<td>序号</td>
						<td>水机用户</td>
						<td>性别</td>
						<td>手机号码</td>
						<td>安装地址</td>
						<td>设备编号</td>
						<td>用户名</td>
						<td>经销商</td>
						<td>充值记录</td>
						<td>编辑用户信息</td>
					</tr>
				</thead>
				<tbody>
					@for($i=0, $customerCount = count($customer_list); $i<$customerCount; $i++)
					<tr >
						<td>{{ $i+1 }}</td>
						<td class="deviceUserCell">{{ $customer_list[$i]->name or '' }}</td>
						<td class="sexCell">{{ ($customer_list[$i]->sex == '0')?'未填':$customer_list[$i]->sex }}</td>
						<td class="phoneCell">{{ $customer_list[$i]->phone or '' }}</td>
						<td class="adressCell">{{ $customer_list[$i]->installation_address or '' }}</td>
						<td class="deviceCodeCell devicecodeVal">{{ $customer_list[$i]->device->code or '' }}</td>
						<td class="userNameCell">{{ $customer_list[$i]->device->installInfo->customer_name or '' }}</td>
						<td class="agencyCell">{{ $customer_list[$i]->device->installInfo->dealer or '' }}</td>
						<td><a href="/admin/device/chargeRecords/history?device_id={{ $customer_list[$i]->device->id or 0 }}">查看</a></td>
						<td><input type="hidden" value="{{ $customer_list[$i]->user_id }}" /><a class="writeBtn">编辑</a></td>
					</tr>
					@endfor
				</tbody>
			</table>
@stop
@section('page_num')
<!-- 分页布局 -->
<ul class="pagination pagination-lg"> 
	{!! $customer_list->render() !!}
</ul>
@stop
@section('infor_promit')
@parent
	<div class="bombBoxBg">
		<div class="bombBox" >
			<p class="titleTxt">编辑信息</p>
			<div class="writeBox">
				<p><span>水机用户</span><input class="nameBox" type="text"/></p>
				<p class="sex_p">
					<span>性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别</span>
					<span class="sexInput"></span>
					<span class="sexBox">
						<a>男</a>
						<a>女</a>
					</span>
				</p>
				<div class="clearfloat"></div>
				<p><span>手机号码</span><input class="phoneBox" type="text"  /></p>
				<p><span>安装地址</span><input class="adressBox" type="text"  /></p>
				<p><span>设备编号</span><label class="getDeviceCode"></label></p>
				<p><span>用户名</span><label class="getUserName"></label></p>
				<div class="clearfloat"></div>
				<p><span>经销商</span><label class="getAgency"></label></p>

			</div>
			<label></label>
			<div class="btnBox">
				<a class="callOffBtn">取消</a>
				<a class="confirmBtn">确定</a>
			</div>
		</div>
	</div>
@stop